﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsHouseMapPoint")]
    public partial class MsHouseMapPoint
    {
        public MsHouseMapPoint()
        {
        }

        public enum EnumHouseMapStatus
        { 启用 = 0, 禁用 = 1 }

        /// <summary>
        /// 户型图Id
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid HouseMapId { get; set; }

        /// <summary>
        /// 站点UUID
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid PointId { get; set; }

        /// <summary>
        /// 站点序号
        /// </summary>
        [Key]
        [Column(TypeName = "int4")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int PointIndex { get; set; }

        /// <summary>
        /// X坐标
        /// </summary>
        [Required]
        [Column(TypeName = "varchar(64)")]
        public string x { get; set; }

        /// <summary>
        /// Y坐标
        /// </summary>
        [Required]
        [Column(TypeName = "varchar(64)")]
        public string y { get; set; }

        /// <summary>
        /// X坐标
        /// </summary>
        [Required]
        [Column(TypeName = "varchar(64)")]
        public string offsetX { get; set; }

        /// <summary>
        /// Y坐标
        /// </summary>
        [Required]
        [Column(TypeName = "varchar(64)")]
        public string offsetY { get; set; }

        /// <summary>
        /// 状态，默认1
        /// </summary>
        [Column(TypeName = "int4")]
        public int Status { get; set; }

        ///// <summary>
        ///// 站点类型1:客厅 2:卧室 3:厨房 4:洗手间 5:阳台
        ///// </summary>
        //[Required]
        //[Column(TypeName = "int2")]
        //public PointTypeEnum Type { get; set; }

        /// <summary>
        /// 站点类型Id
        /// </summary>
        public Guid MsPointTypeId { get; set; }

        /// <summary>
        /// 户型
        /// </summary>

        [Column(TypeName = "int4")]
        public int? HouseTypeKey { get; set; }

        /// <summary>
        /// 户型
        /// </summary>

        [Column(TypeName = "varchar(256)")]
        public string HouseTypeName { get; set; }
    }
}